class Some{
	void doService(){
		System.out.println("some service");
	}
}
class Other extends Some{
	@Override
	void doService(){
		System.out.println("other service");
	}
}
public class Main{
	public static void main(String[] args){
		Other other=new Other();
		other.doService();
	}
}